import React from 'react';
import classNames from 'classnames';
import { Link } from 'react-router';

import {
  Badge
} from 'react-bootstrap';

class MessageBadge extends React.Component {

  constructor() {
    super();
  }

  static propTypes = {
      
  }

  static defaultProps = {
      
  }

  render() {

    let { count } = this.props;

    return (
        <Link to="/Message">
          <div className="header-badge">
             <div>消息 
             {
               (count && count > 0) ? 
               <Badge>{count}</Badge>
               : null
             }
            </div>
          </div>  
        </Link>
        
    );
  }
}

export default MessageBadge;
